package java56_6.ch5;

public class ThiefProofDoor extends Door implements Lock, PhotoTaker {

	public ThiefProofDoor(String brand, String color, int price) {
		super(brand, color, price);
	}

	@Override
	public void close() {
		takePhoto();
		super.close();
		lock();

	}

	@Override
	public void open() {
		unLock();
		super.open();
		takePhoto();
	}

	@Override
	public void lock() {
		System.out.println("门上锁了");
	}

	@Override
	public void unLock() {
		System.out.println("锁开了");
	}

	@Override
	public void takePhoto() {
		System.out.println("拍照，存档");
	}

}
